workaround for versions of grep without -q (quiet) option

Please be gentle; this is my first pull request. :-)  Also, typo in my original commit - it's supposed to say that this is a workaround for versions *without* -q, not *with* -q.