add --tags to 'git describe'

'git describe' calculates the version since the last **annotated** diff. Adding --tags shows the most recent tags (v0.94, for example) regardless if they're annotated or not.
put git version detection code into a sub
Merge pull request #107 from msimerson/version

add --tags to 'git describe'