Initialize $history_file only when the value of 'save_input_history' is true.