commands/rsync: handle proxy machines [GH-4066]