Added osfamily facter to the "if" instead of operatingsystem.