cli: fix the wrong copy of template pkg

The template package was created even if the directory was present into the
current directory (Closes #70)