Recognize XDG_CONFIG_HOME while generating completions

Fixes #1343