Move RHEL7 check to the shared/