Replace `instanceof` with `isDot` again

DirectoryIterator always returns an instance of DirectoryIterator, even
for files. Obviously.