Improve automatic version increment (update version and reload so the file names are right)