Fixed upgrade bug where TE version isnt already in the config file.