Setting right context for proces in windows

Fixes an issue where windows would lose the context of a new process and introducing problems with environment settings.

This fix sets the env-vars on the current context and provided the current context to new new process instead of creating a whole new context.