Removes redundant / from the generation of the path.
Update the documentroot in handler_cgi_base.

When the user has set a different Document Root in the admin, it seems
appropriate to propagate this change to the CGI subsystem handling the
request.