improved module name conflict detection