Removed quotes from LogDir variable generation as there are additional quotes in Line 127. This caused problems when those batch files are invoked from a path that contains space characters.