implemented smart init config for node-daemon util