fixing Red Hat version detection