TemplateDownloader: adjusting dependencies when upgrading