Build script fails when using new CMake project and no lcg-toolchains available
Exceptions are used to report errors in the configuration step of the build tool for new style CMake projects, but the caller is not instrumented to trap them.
Although the use of exceptions would be more natural (also in the context of LBCORE-1711), we have to change the code to prevent spurious failures of the jenkins scripts.