Fix for use on OSX Mountain Lion

Apparently perl-regexp has been removed from grep in Mountain Lion.
http://www.dirtdon.com/?p=1452
Merge pull request #4 from kasperhartwich/patch-1

Fix for use on OSX Mountain Lion