Ensure only major and minor versions are returned for CentOS 7.

CentOS now includes major, minor and release version values in /etc/redhat-release.