Don't ignore config file `sock_dir` setting. Fixes #8365.

Only afterwards try the system default path.