daemon: include functions before config to enable define_default support