fixing Red Hat version detection

Tested both on CentOS and RHEL. Gives "6".