1138917: ensures that there is a path separator between remote directory name and remote file name when copying a file