Fix regexp syntax being passed to egrep