build.sh fails with bash