Updating build.sh. Removing some unused codes.