modified section that writes webworkConfig.pm so that it respects the $Global::cgiDebugMode flag.
Changed paths: