driver: detect recursive modules