The version string for '2.1.6-beta2' is reported as '2.1.6-' which causes a problem when trying to parse '6-' as an integer.