Update CMakeLists.txt

better check for /etc/gentoo-realase.

The ${CMAKE_SYSTEM} uses the first chars of kernelversion and might not detect Gentoo on non-Gentoo kernels.