Proper detection of distribution on RedHat Enterprise Linux (fixes deployment in EPEL where the official builds are on RHEL).