prefer \$XDG_RUNTIME_DIR for pid file and socket
Merge pull request #344 from peterhoeg/master

prefer $XDG_RUNTIME_DIR for pid file and socket