config: Fix more bugs in the RHEL6 handling logic