Cleanup CMakeLists.txt
Use ConfigurePaths to get installation paths

The advantage is twofold: 1) we have a clear separation between setting up the
paths and actually using them, 2) the interface is very likely as configure
scripts and makes integration into build system a bit easier.