Use reflection to build the list of modules.