fixed Windows bug in daemon.t