Don't harcode udtc path
Take into account XDG dir not existing

Add as well a test for it