Improve version number of installer, keep patch number in case of stable build, add 1000 and build number in case of nightly build.