Corrected test to detect a windows OS