[dunecontrol] Accumulate checks for environment variables.
[dunecontrol][CMake] Reintroduce evaluation of CMAKE from opts file.

CMAKE can now be set in the shell or the opts file, if both are set
the shell has higher priority.
This feature was dropped in …aef001c21e3a9 to fix FS#1518.