Substitute evaluation environment

Run `.brew.cached` in the package’s rather than the client’s name scope
to avoid using redefined functions.
Remove redundant variable
Merge pull request #1 from klmr/fix-env

Brew breaks when redefining common functions