CGI environment fix for detecting path information