[PATCH 5/6] kbase: incrementalbackupinternals: Replace bash with pseudocode