make code coverage egrep portable