Added echo output to build.sh to identify error stage.