Add fix for Mac's version of sed, to fix cpu detection

Without this, I get
   sed: illegal option -- r
Merge pull request #80 from ktaragorn/fix_regexp_mac

Add fix for Mac's version of sed, to fix cpu detection