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.