Update the atomic_move method so that files are always copied when sudo_user is set

* This ensures that the destination file will belong to the correct user when it is moved from its temporary location, even if that user is root
* Fixes Issue #3554