Yeah, I know. Unfortunately the MacOSX sed does require the parameter separate from the -i where on linux it's optional. I guess the simplest solution is to give -i ".bak" and just delete the backup file afterwards.