cmake: use execute_process' whitespace stripping
Merge pull request #167 from mathstuf/dev/execute_process-strip-whitespace

cmake: use execute_process' whitespace stripping