wait for tar to complete before committing image

this fixes 'cp: cannot stat /app: No such file or directory' during /build/builder execution, which seems to occur more frequently with docker 0.6.x.