Traversing directory in search of files