Fix notification for duplicate modules

Dialyzer fails when asked to analyze multiple modules with the same name, but
the error message was erroneous. With this patch Dialyzer generates a correct
error message.

Bug reported and patch submitted by Maxim Treskin.