Fix architecture check in build.sh