gc.sh: add paranoid check to make_repack_dir