file-copy: always rename temp-file to target.