fs/memfs: Add IsDir function