Better compatibility with CGI.pm < 3.36

CGI.pm had a bug where it did not recognize multiple values in HTTP_COOKIE env var delimited by comma. This patch improves compatibility with Perls older than 5.10.1 with default CGI.pm.