Fixes allowing to run tests with CMake

Allow to run application without setting ROOTSYS, and allowing to have the ROOT executables in a different directory than bin (e.g. bin/Debug, or bin/Release, as set by default when building with Visual Studio)