[diagnose] handle XDG_CONFIG_HOME