Supporting Windows OS while detecting OS

Since class OsDetect is not considered, when detect_os method of it is called on Windows OS, it fails to detect. New one gets over this by adding Windows class.