baseimage: use `sed -i -e ...` instead of `perl -pi -e ...`