Detect issues with mirror directory (exists but empty, exists but .git underneath empty) and recreate from scratch when that happens
Merge pull request #213 from mortardata/ddaniels_embedded_project_mirror_directory_robustness

[#76982478] Detect issues with mirror directory and recreate