Fix windows browser detection

All tests pass on windows.