Fixed a bug where config file options were not taken into account