index_complete.txt can't be found (but is placed in the working directory). replace exec "touch index_complete.txt" with exec "touch $output.dir/index_complete.txt" in clinker.pipe ?