Use sys.platform instead of wx.Platform to determine the OS.