changing sed to work on osx