Expose configuration for diagnostic output directory

* Generate `directories` configuration in the cc config documents
* Update control scripts to create diagnostics directory with the
  approppriate owner