Fix browser detection on Windows