Operating System name detector

This snippet detects the OS in three different ways.