Fixed version number extraction to allow hex (doh!)