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

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

Correct syntax
It is actually all solaris
Merge pull request #84 from hunner/grep_sol

It is actually all Solaris.
Convert to using .tmpdir instead of a hardcoded /tmp, so this works
on Windows too.
Merge pull request #86 from apenney/fix-tmpdir

Convert to using .tmpdir instead of a hardcoded /tmp, so this works