fixed a NULL reference
improve DirFile; add slash for directories in ARRAY_INFO.