build.sh: backwards compatibility