honor the --docdir configure option.  The projdocdir variable is replaced by docdir variable. projdocdir had the same functionality as --docdirconfigure option.  The default docdir value is: $(prefix)/share/doc/$(PACKAGE) (is the same as --enable-fhs option)
Redmine#3584: add relocation options and --printlog to testall script
Merge pull request #1058 from tzz/feature/3584-masterfiles-acceptance-tests

Redmine#3584: add relocation options and --printlog to testall script
Merge pull request #1017 from basvandervlies/respect_docdir_option

honor the --docdir configure option.
Redmine#3279: nth() now data container aware
Redmine#3279: nth() data container support, tweaked per:
  https://github.com/cfengine/core/pull/1056#issuecomment-27328919