Added support for Mac sed