use xdg-user-dir for generated config

closes #367