Fixed a faulty operating system check.