Fix directory info parsing