Check if module name is unique before renaming.