build.sh exits 1 on error