completely rename _configfile to _cfgfile
test config writing to XDG dir
correct the behaviour related to XDG config dir