Fix for problems setting sub-folders in the templateFile