Make tarball building atomic