do not export_files in case @modules weren't even initialized
1134576 - do not call methods on nil, ruby does not like it