Fix auto-gamma by using which.
Fix auto-gamma by using which.

alberthxf/custodian,davidwaroquiers/custodian,specter119/custodian,specter119/custodian,materialsproject/custodian,materialsproject/custodian,specter119/custodian,xhqu1981/custodian,materialsproject/custodian