Added directory creation to FunctionGenerate and FunctionWriteFile
* i.e. they now create the directory tree required to contain their respective output files automatically
* this is needed so TestXSLT is able to create the target directory implicitly