fix a small bug in the recursive dependency lookup for generated menuconfig files