CentOS and RHEL 6 compatibility

Changing operatingsystem check to osfamily and adding RHEL 6 option.