wscript: more robust handling of CPPFLAGS