Fixed a create-dir problem when using lcg tools
Merge fix: create-dir problem when using lcg tools