Fix tests for redhat

Fix spec tests for RedHat. Make unsupported OS detection more reliable.

Could you enable Travis CI on the PL fork to catch these errors in future? It might benefit from removing the branch restriction in `.travis.yml`