Fixes #1

Using env[:something] instead of env.something,
since env is a Hash.
Merge pull request #2 from bfontaine/patch-1

Fixes #1