Revised build.sh