minor improvements in _isDaemonRunning