Improve configure.sh.