wscript: check for pd header, define VERSION