fixed section that writes webworkConfig.pm so that setting $cgiDebugMode=1 (in Global.pm) actually turns on debugging.
Changed paths: