Update scripts to detect and handle RHEL distributions