Fix sed to work on both Linux and OSX