Fix rand_thin dir system, it was broken in the heredoc PR
Merge pull request #16661 from thatch45/fix_rand_thin

Fix rand_thin dir system, it was broken in the heredoc PR