Fix cgi scripts