IDEX-1586: clone in temporary directory and move result to destination directory