make masterdir configurable via configure option: --with-masterdir=<directory>
append masterfiles when CFENGINE_TEST_OVERRIDE_WORKDIR environment is set
sys.inputs is configurable via:
 * ./configure --with-inputdir=<directory> (default: sys.workdir/inputs)
Redmine#3983: format() %S specifier
Redmine#3870: acceptance test to ensure an empty template empties the file
Use the new functions
 * GetInputDir() for inputs directory (sys.inputdir)
 * GetMasterDir()  for masterfiles directory (sys.masterdir)
Merge pull request #1264 from tzz/feature/3983-format-S-specifier

Redmine#3983: format() %S specifier
libenv/sysinfo.c: add cf-upgrade to list of components
Standardize Buffer, remove memory cap features
Warnings
Make prep step and output render correctly as code.

Everything in a #@ block is rendered verbatim, ie interpreted as
markdown.
Mark preparation steps and output in all example files as code.
examples/remake_outputs.pl: skip Markdown outputs
examples/remake_outputs.pl: skip Markdown outputs in outputs, too
examples: fix up examples for acceptance test and print old output when different
examples: more fixes for acceptance tests
examples/remake_outputs.pl: run diff if outputs differ
examples: even more fixes for acceptance tests
examples/filestat.cf: fix for acceptance test
18_examples/check_outputs.cf: reenable