find the right dir