Prefer named tags to Git revision hashes for LDC verison.

This allows for building of release packages without
manually overriding the version string.

The --tag argument is needed to pick up un-annotated tags
as well.
Merge pull request #498 from klickverbot/cmake-version-tag

Prefer named tags to Git revision hashes for LDC verison.