changed sed replace regexp which supports both MacOS and unix based OSs
Merge pull request #2 from stupchiy/sed_end_of_line

changed sed replace regexp which supports both MacOS and unix based OSs