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