Fixed bug where log_dir was being ignored when set to a non default value