bug-fix in build.sh