Fix bug that when the XDG Base Directory variables are not set on startup a directory "~" is created in $HOME instead of falling back to the default values.
Fix bug that when the XDG Base Directory variables are not set on startup a directory "~" is created in $HOME instead of falling back to the default values.