finish-install/installer: enable Nonfree/Tainted repositories if a package having a matching name is installed (#8379)