Add CentOS and RHEL 6 compatibility to params

Changing operatingsystem check to osfamily and adding RHEL 6 option.