Refactor tag determination in Podspec so it's easier to update in the fu...

...ture