Add debugging to build.sh