Adapt to daemonlib utils.c split