Fix grep -c with quotes on variable [enable newlines] and $ on target
to avoid inadvertent substring match on clean_remote_snaps along with
clean_remote_noprefix_nosrc_snaps, which shared code