Make 'buildslave --version' work outside source directory

Copied code running 'git describe' from buildbot/__init__.py to slave/buildslave/__init__.py. This makes it possible to run 'buildslave --version' command outside of git repository.