Allow uppercase 'debug' environment variable

I ran into this when I couldn't understand why the debugger wasn't starting. My impression is that upper case environment variables are more common than lowe rcase, but I'm not sure what the 'best practice' is.