[BUGFIX] Resolves extension dependencies recursively