fixed how to handle multiple values with the same key when setting an environment variable for a cgi script