Update migrator.js

Allow migrations of all extensions specified by require.extensions.