Modify test outcome on very specific Solaris versions.
Work around bug in /usr/xpg4/bin/grep on Solaris.