Variations of sed between OSX and GNU/Linux