Support different migration commands in run_migrations.sh