Fixes exception when git tag is a Version

This fixes Cocoapods/cocoapods#1721

Now if someone writes
````
     s.source = { :git => "https://github.com/DDBen/pods.git", :tag => s.version }
````
in their pod spec its going to succeed instead of fail with a stack trace.

#cocoapodsbugbash