Avoid multi-line grep on Solaris 10
Merge pull request #82 from hunner/grep_sol10

Avoid multi-line grep on Solaris 10