setup.py: rework version generation

Read the included version.py if we can not get the version from git. This
is needed if you want to install the package from pypi.

Signed-off-by: Michael Walle <michael.walle@kontron.com>