Fixed bug in config_writer.py.