Use ${CMAKE} instead of cmake.
Merge pull request #374 from hashdist/johannr/cmake-fixes

Use ${CMAKE} instead of cmake.