Fix version detection for non-chrome browsers