Fix cgi compatibility issue to avoid execve error