update build.sh and make the script correct.