Actually to not change all scripts running both versions of console and gui just detect that the caller is through fpm-cgi and make it include config.gui.inc to avoid having issues in general from being called from wrong places.