added suport for saving the output_dir into QSettings.