Fix typo preventing proper EOF check on CGI pipe