redirect to /dev/null instead of '-q' option for solaris 10 or earlier

The /usr/bin/grep on Solaris 10 or earlier has no '-q' option, http://docs.oracle.com/cd/E26505_01/html/816-5165/grep-1.html
This pull request solve this problem with redirecting to /dev/null instead of '-q' option.