Deal with component name inconsistency when extracting the version nos