Fixing an issue with inline sed on Darwin