bugfix -- should be 'cgi-bin', not 'cgi_bin'
check for REQUEST_URI in environment so that running from the shell still works