Simplified the Windows version check code