[v3.1-stable] check ROOT CXX version standard env variable
depending on root install procedure root version cannot be deduced by checking build flags
(cherry picked from commit a58d8509)
backport of !1114 (merged)
depending on root install procedure root version cannot be deduced by checking build flags
(cherry picked from commit a58d8509)
backport of !1114 (merged)