Adding read/write of history file (set Cmd.HistoryFile)