Improve build script.