Revert "Don't unlink temporary file until after the "cp" command has finished."

This reverts commit 642580c49a5b1ce5bb35417afa068546a655217a.