sed -u doesn't work on OS X