Bail out only if depot_tools path contains a tilde
Bail out only if depot_tools path contains a tilde

Previously, gclient will exit if it found a tilde in any element from
PATH. This CL changes that to first check if the path is the actual
depot_tools directory.

Also check for '~', instead of '~/', in case the path looks like
'~user/path/to/depot_tools/.

Bug: 952865
Change-Id: Ied07444e44edb655b5c8837b5e51eeb0dcebba6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1581419
Reviewed-by: Aaron Gable <bbed39beedae4cdb499af742d2fcd6c63934d93b@chromium.org>
Commit-Queue: Henrique Ferreiro <da177ab24dff8a8c938f5215e3f94826d48bac0e@igalia.com>

CoherentLabs/depot_tools,CoherentLabs/depot_tools