Fix a sed portability issue

In 31b5ea7dacbd7c83874e1e6a9da7e7b49ccfd048 we fixed one sed portability
issue introduced in #2831. Here's another.
GNU sed doesn't understand an empty arg after `-i`
Merge pull request #2849 from gratipay/portable-sed

fix a sed portability issue