Combine some file-move logic in Utils.fetchFile