The variable is in `$name` and in `$this->output`, so the `$clone->setTargetPath(str_replace('*', $name, $this->output))` make a path with the variable two times in it!