Summary: This reworks `gentest-validate`, to be more resilient to changes like D58307002, which cause [validation failures](https://github.com/facebook/yoga/actions/runs/9653979292/job/26627690870) due to the file traversal code not handling the presence of directories. Differential Revision: D58987293