Fixed issue with config files getting overwritten on upgrade