[cipd] Match version to vars value supporting in gclient.py
[cipd] Match version to vars value supporting in gclient.py

For now 'version' of packages only support string like 'version:27.0.5'.
It is helpful to support version to match vars value, e.g.
Var('tool_version'), especially useful when version numbers could be
modified via api. This change won't affect versions with string format.

Change-Id: I40b389b528f04712798b08f1455869cab2ec54c9
Reviewed-on: https://chromium-review.googlesource.com/935666
Reviewed-by: Aaron Gable <bbed39beedae4cdb499af742d2fcd6c63934d93b@chromium.org>
Commit-Queue: Shenghua Zhang <2c8b5a2f7ee576004d0c9ec0792131b808c112bc@chromium.org>

CoherentLabs/depot_tools,CoherentLabs/depot_tools