Properly use a given socket name when checking for Emacs daemon.
Respect common naming conventions.
Implement --version.