improved the check on RHEL repository