Initial setup of -D /path/to/dir support for CGI mode.