this catches the case where someone sets the git tag directly from the version, causing an exception. Cocoapods/cocoapods#1721
Merge pull request #72 from joelparsons/fix_cocoapods_1721

Fixes exception when git tag is a Version