Close #398 CMake Use Execute Stripping

Use trim functions of `execute_process` in CMake instead of regex-ing the trailing white spaces and newlines away ourself.