baseimage: use `sed -i -e ...` instead of `perl -pi -e ...` to edit config files