build.sh: adapt script for current enviroment