fix sed no -r option on mac
Merge pull request #121 from brianli/master

fix sed no -r option on mac