packages.mk: move CMake with CUDA patch to 2.8.12.1

The update includes a bug fix that makes the version number of the CUDA
compiler available to CMake scripts.
revise program identification in version output and logger prologue

* decompose Git version string in case of a dirty repository

* output program variants enabled by CMake switches

* output compiler versions and Lua version

* use UTF8 encoding, but store ASCII variant of long program name in
  HDF5 output