Added config option 'env'. Fixes #10