Use a synchronous copy instead of a rename

Node rename doesn't work across different filsystems (i.e. different
disks) so we have to copy the file.