Fix cgi paths