This makes use use the XDG Base Directory Specification for the log file path. This tackles one part of bug #6036 "POSIX: Use XDG dirs instead of HOME".