also fix rhel 6 detection