Improve makedist.sh.