Fixes CGI paths