Fix escaping issue for single value config items

Previously this was using grep -x to compare the output of git-config to
what is expected.  This starts to fail on items like the match key for
the commentlink section, since that contains a regex.  This changes it
to do a basic string compare using test.