wait for tar to complete before committing interim image

this fixes 'cp: cannot stat /app: No such file or directory' during /build/builder execution
merge tar race fix