resolves #5867: specify dummy template dir when cloning