small fixes in build.sh