remote.c: use shorten_unambiguous_ref