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.
It's probably worth to spend a little longer on choosing the correct approach.
Let's discuss this in #91.