Revise how version strings are computed

With this commit, when possible setup.py tries to build a version string
based on the last git commit id and, if available, the commit's tag
name.
Fix MANIFEST.in file
Improve logic to set version