Fix broken browser version parsing in some cases