[FIXED JENKINS-22535] fixed detection of whether we are working with the...

... MatrixRun or MatrixBuild build type