Fix environment variables to be case-sensitive in enumeration, but
case-insensitive when looking up.