fix rhel 7 detection