Updated version detection with more flexibility and added support for detection Chrome v38 and v39.