Fixed bug with modules with the same id and version, but from multiple locations being added twice.