cmSystemTools: Add GetComspec method to get cmd on Windows The function attempts to read the path to cmd executable from the COMSPEC environment variable. Falls back to cmd.exe if the respective environment variable is not set or path doesn't exist.