core: Vagrant.has_plugin? tries to match gem name first

Search primary from the list of plugins that have been
`Vagrant.require`d. Fallback to matching plugin names.