fix erroneous if/else logic in rpm.groupinstall and rpm.groupuninstall