Detect OS version when running on RHEL/CentOS 5.x

These versions only have /etc/redhat-release, not any of the newer files. Without this patch, these systems turn up as "unknown".