change sed option order to work on mac too