fixes improper init in HistoryAccessor, preventing setting `hist_file` via config from having any effect.
Also remove dependency on having a shell object in `HistoryAccessor.__init__`
Associated test included.