Use git describe if not on a local branch.

Gives more detailed info including tags.