Add 'extension' argument to sed -i

The BSD-derived version of sed on OS X requires an extension to make a backup version of a file when run with -i. This is optional on the Linux version. This missing argument breaks the build on OS X.