Simplified some stuff in lookup_xdg.go.