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

These versions only have /etc/redhat-release, not any of the newer
files.
Merge pull request #366 from rolk/366_redhat

Detect OS version when running on RHEL/CentOS 5.x
Merge branch 'master' into devel