Switched the version detection logic for redhat