Fixed a create-dir problem when using lcg tools