Change distro detection logic for redhat base