migrations library in installer: fix install() for non-core migrations

Copy this regression fix to the installer.