fixed #260: tDiary.document_root returns current directory in the CGI/FastCGI