configure.ac: generate version number from git commit and tags