Cleaned temp dir in symlinks_supported()

Refs #21482.