Run setup script after plugin installation. Rebuild only on plugin update