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

Without this, I get
   sed: illegal option -- r