Fixes for Mac OS X's BSD sed.