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.
Just tried to submit a change for the missing "dmd" prefix... I clicked on the wrong page and ended up posting directly to D-Programming-Language/installer.git.

When you view the output of git, there is no "^1" suffix. If there was on, it would suggest that branch itself. "^2" gets you 1 commit above the branch, which is exactly what we need here. "master^2" yields 2.066.0-b1 while  2.066.0-b1^2 yields  2.065.0.

Stripping was done to get rid of the white space. Didn't think of using stripRight at the time.