Fix sed command for Mac OS X