This has shown a problem especially on non-Linux platforms since XDG is more of a Linux standard. (cherry picked from commit 8ac1e407)