Fix: Transform envs option to object in Config

Fixes #1064.