Fixes to make ResearchAssistantJ communicate properly with subprocesses