CLI fix for (Fast)CGI SAPI