Ditches sed for better osx support.
Merge pull request #2 from Crawleyprint/master

Improves OS X support