Add non-empty extension for sed

The sed commands are now compatible with both Linux and Mac.

See comments in https://github.com/travis-ci/travis-build/pull/207