Upgrade old configurations and resources the first time run a new version of cortex.