Added version detection for CentOS 7.