sed fix for OSX