gc.sh: avoid unlikely ref name repack duplication