Change to egrep to have more predictable error behavior.

If egrep should not be available that is. -E flag might mean something
else on an unknown platform.