fn state_dir() -> Option<PathBuf>
Where the preferences file and the REPL history live. One directory, following XDG_STATE_HOME when it is set.
XDG_STATE_HOME