Generate version string from git tag

Based (as in recklessly cut and pasted) from omf_common, thanks Jack!

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>