Share code for getting version module

Signed-off-by: Michal Čihař <michal@cihar.com>
Implement getting git version in VCS module and use it

Signed-off-by: Michal Čihař <michal@cihar.com>
Merge branch 'master' into bootstrap