CHANGED build number version to use major and minor from file and build number as patch and to write version number to file