Windows support: the envs parameters was not taken account correctly