Switch to osfamily from operatingsystem to support SL, OEL, etc

This commit moves the operatingsystem check to use osfamily instead - this is needed to support Redhat based OS's you do not check in the conditional.