build.sh modified by Yang