change sed parameters so it works with both BSD and GNU sed
Merge pull request #27 from maikmerten/master

change sed parameters so it works with both BSD and GNU sed