tools/deps: fix git dir check (#15470)
tools/deps: fix git dir check (#15470)

On Windows, a successful call will have a trailing newline appended, so
strip that away before doing any checks.
dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim