agent, tests: Support --disable-scdaemon build case.