stop polluting process.env by mistake: use a deep-copy not a reference.
fixes #11
merging
making backwards compatible