Use xdg-basedir instead of xdg.