Updating Hops components that are nested

I want to write a component that infers from a list of inputs that is passed in, the path of an appropriate Grasshopper file to run. This path can then be fed into the Path input of a Hops component.

I want to bundle the Hops part together with the path inferring part into a single component, but I am having an issue where the Hops component does not update when given a new path if it is nested.

Is there a solution to this? Would it be possible to write a custom component/plugin to implement this updating procedure? (by possible I mean does the SDK/RhinoCommon expose such Hops functionality)