Make check for the "GUI" daemon instance more robust
Make check for the "GUI" daemon instance more robust

There is no need to read the environment variable (which might not be set,
that's the brittle part) to determine the name of the server socket. We can
rather use (daemonp) which doesn't return a boolean, as the suffix "p" might
suggest, rather it returns the socket name.

amfranz/spacemacs.d