fix(plugins): ensure plugin installation can only happen once