Add clearEnv option

I think that env variables should be not cleared by default. I think many expect those to be present.

Since some uses cases may need it, I added an optional flag for it.