Use a termMap to detect the running operating system