`find_resolved_modules` does modify avail_modules, I'll add a comment to clarify that