Check for OS correctly