> Minor point, but you can use setenv in let clause.

Btw, what do you mean by that? Can you set an environment variable temporary?