lib/process: Add raw stdout mode