fix: respawned commands weren't sending output to log file correctly