Don't use "grep -q", "-q" is not POSIX, and fails on Solaris.