make append-tramp-host work on remote directories also