Fix version-no-tags test on Windows.

Helps with #4316. Thanks @robertkowalski for the idea on how to fix.