Fix XDG spec violation: handle cases where XDG_DATA_HOME and XDG_CONFIG_HOME are not set.