Fix directory comparison