Add a better check for emacs daemons