small fixes to build.sh related to wget