open_cgi_endpoint() strrchr fix