Fix Git failures due to tag ambiguity (issue #3417)

This should fix issue #3417.

I've tested it against the `composer.json` that replicates the issue and confirmed the download works properly.