executing sed with args compatible with osx