Made modules resolver work with linked modules.