Use normalized name for namespace and search directly in the list of classes
Fix ROOT-6187, initialize gROOT before executing DynamicPath