BSD compatible sed usage

This small change to the invocation of `sed` makes the test suite pass on OpenBSD and possibly other BSD's. BSD `sed` (at least on OpenBSD) does not support the `-i` param. The test suite still passes on linux.