Refactored PathKey -> ToolKey to encapsulate path and flag keys; updated parser-helper usage to use flags.