use osfamily instead of operatingsystem to determine $gplusplus_package

This fixes the g++ package requirement for all RedHat variants.