Fix cavern detection in bordered islands