Fixed getting git-version of mixed VC pinned packages

Closes #1904