Fixed 'egrep: repetition-operator operand invalid' running on OSX 10.8', closes #163