changed yum group check to safer method