Instead of using a yml file for base_folder config - use a getter/setter on the module called: base_folder.
Add the modules to precompile after initialization rather - else we don't pick up the initializer file in case we overwrote the base_folder.