Changed the method by which the OS is checked.