[Jar installer] Fixed building of dependency graph tree.