os can detect operating system - no need for platform.
Some changes suggested by Landry.