wafcontext: rename wscript into wscript.bak when already present
wafcontext: consolidate waf_gen_hvalue_from