Recording where this runs
Improved the plugin repo detection logic