fix LocalFileSystem.isdir