Fix wscript to support directories with spaces