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 pull request #32 from opdemand/fix-tar-race

wait for tar to complete before committing image