Added an option for configure '--with-logdir=>directory>'. When not specified it is the same as 'WORKDIR'.
This came up when building the debian package. We need to change the location of the logfiles.  For testing we can override it with
an environment variable 'CFENGINE_TEST_OVERRIDE_LOGDIR' and also defined 'sys.logdir', eg:

body common control
{
    bundlesequence => { test };
}

bundle agent test
{
    reports:
            any::
                "$(sys.workdir)";
                "$(sys.logdir)";
}
Merge pull request #1005 from bahamat/master

Correct spelling in a few places
Also change logidr --with-workdir is specified
Merge pull request #1004 from basvandervlies/loggdir_configurable

Added an option for configure '--with-logdir=>directory>'.
Fix strftime unit test.

The test tests/acceptance/01_vars/02_functions/strftime.cf would fail
builds on Sundays. The policy specified Sunday as 7 but strftime specifies
Sunday as 0.

From strftime(3):

     %w    is replaced by the weekday (Sunday as the first day of the week)
           as a decimal number (0-6).