Fix some oddities in Tramp's rsync and smb methods