Allow specifying a custom PATH for which method

I have other work that depends on this, but I think it's useful on its own.