sed is working differently on OS X