Minor changes to path.cc
Move around XDG header functions and tests