Update Directory.java

Fixed namei bug