On a system that uses a european culture info the version string "12.0" is converted to a double with the value 120. To fix this simply cut all parts after the dot and convert it directly to an int