Fix directory finding bug.