[BUGFIX] Nicer API-path selection in plugin