improve build.sh