add OSX compliant implementation of XDG Base Directory Specification