add environment variable to disable searching default taps

A pr addressing #25857.