prefer \$XDG_RUNTIME_DIR for pid file and socket