Wait until configuration is loaded in hooks before running loadModules (so that configured path is known.