Make the dependency in hrp2 optional.
Correct the path to the plugin directory of dynamic-graph.

The dependency in sot-pg is required to obtain the plugin-dir