Fixed bug in DirParser

Files in the first directory were ignored