Fix migration scripts to work with new config scheme