build: fix AC_INIT string of configure.ac.

As specified in https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Initializing-configure.html
build: use git version if available.

Borrowed from Arch Linux pacman:

https://projects.archlinux.org/pacman.git/tree/