sed fix for OS X