Validate module types when processing configuration file.