update sed command to work w/ ubuntu
detect linux and use alternative sed syntax
remove debug line
Merge pull request #1 from kengoldfarb/master

Updated to work w/ linux