fix more Solaris testing issues

echo doesn't support "-n"
grep doesn't support "-q" and "-e"