issue #1696: browser type detection

improved browser type detection