Implement our own inplace-sed function so we can update versions without leaving backups around on both platforms with GNU sed and with FreeBSD sed (@jerith).