build.sh: Correctly fall back to curl