fix for exception while parsing version constraints

@devoncarew