bsd sed requires an argument for -i option.

BSD sed requires an argument for '-i' option while GNU sed can omit it.
For supporting both versions, just put empty string as argument.
Thank you.