Parse env configuration in posix mode

Fixes #328

This allows (escaped) quotes in the values as well as empty
values.