Replace the target tarfile atomically