Use grep -E instead of deprecated egrep