In config.py, tex_dir is defined inside config (config['tex_dir']), same for 'text_dir'.
But in tex_file_writer.py, l32, it is file_writer_config['tex_dir'], that is used (not config).
This is in fact a very easy fix. I thought to add it within #185.
Pining @leotrs