Crude support for sed on OSX