Make Scientific Linux and CentOS look like RHEL. re #7021
Use common script to check for distro

Also use distro type rather than codename for checking.
refs #7021