scripts/upgrade-lib: use portable sed option

Use -i instead of --in-place so it works with BSD sed.