Fix TISTUD-3447 The string '24-cr' in version '3.0.24-cr' for CLI throws error when we run diagnostic test from studio
      - Use VersionUtil.parseVersion to be more forgiving of various version formats
      - Add more logic to VersionUtil.parseVersion to handle more version string types.
      - Add unit tests to verify a number of version parsing cases.