Made calculation of basedir ignore isolate regions.