[build] Fixed ROOT dictionary generation for ROOT v6.02.00 or newer