configure: Generate version from date of last commit not current date
Using the date at build time prevents the build from being reproducible later.
In order to facilitate reproducible builds, this commit changes the logic to derive the version from the date of the last commit.