making sed call osx friendly