Fix process output redirection