private static string GetPlatform() { switch (Environment.OSVersion.Platform) { case PlatformID.Unix: return "Linux"; default: return "Win"; } }