Don't use "grep -q", which doesn't work on Solaris.