Simplification and update of addon dependency topological sorting.