if we don't find a lid file, try only up to 5 directories