Compiler now mentions which file has a duplicated module. Fixes #2131