build: Make install_with_python.sh more portable