tools: fixed --version output

--version previously showed 1.0.0. Now it shows the package name and
version as set in configure.ac.

--local-tmp default value is now randomly generated using mkdtemp.
The directory is cleaned up if -h, --version or --help where supplied
avoiding to leave unwanted empty directories around.

Moved some other constants to config.py using configure to set them.

Change-Id: I88f53765028284221a0506efbc595b146a2bca8a
Bug-Url: https://bugzilla.redhat.com/886052
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>