GPII-91: simplified build.sh according to @kaspermarkus's comments