Fix wscript, wscript_build + Compare with trace_enabled in test_has_trace.cpp