Avoid multi-line greps on solaris 10
Merge pull request #157 from hunner/fix_sol10_grep

Avoid multi-line greps on solaris 10