fix for sed and newline for osx
Merge pull request #13 from smuzaffar/master

fix for sed and newline for osx