Version detection for CentOS 7

* Detect when runing on CentOS 7
* This commit also makes all tests pass on CentOS