fix for osx sed