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.