Migrate config file before running check config.