I had the same functionality in mind as workdir (--with-workdir) for logdir (--with-logdir). So we can override it for testing. That is why i added the CFENGINE_TEST_OVERRIDE_LOGDIR variable