[build.sh] Make distro tests exclusive

Apparently, some versions of Ubuntu do have a yum binary, but it's really not functional (and shouldn't be used).