Use egrep for cross-platform testing