build.sh: fixes