Improve versioning

1) Update version after cloning repository.
2) Detect previous version from gitTag.
3) Remove use of deprecated function makeVersion.
4) Use local version specific archive if available when creating package.
There is a space missing after "--abbrev=0".
Please only submit tested code in pull requests.