Changes to egrep so it will work on mac (fixes: 'egrep: empty (sub)expression' error)