cmCustomCommandGenerator: refactor GetComment to return std::string Refactoring was done because EvaluateComment leaked memory.