Fix parse_version tests and improve regexp

fixes RT#9452 first regression Y2013