Fix to detect the major release version for redhat/centos 7
Merge pull request #454 from francis826/redhat_operatingsystemmajrelease

Fix to detect the major release version for redhat/centos 7