Fix wscript that fails when configured with --enable-debug