When creating a project from a template, subdirectories that match the
template project name (either exactly or with a suffix like "-dir") were
not being renamed to match the new project name. Only files were being
renamed correctly.
This fixes both GetDestinationFiles() and CreateProject() to also rename
directory names in the destination path that contain the template basename.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22289