use `proc` instead of `lambda`

- Ruby 1.9's `lambda` checks for arguments passed while 1.8's doesn't
- in this case `proc` is invoked with an `env` argument