fixed detecting of running daemons