Fix browser handling on Windows and Linux.