set environment correctly on windows
Merge pull request #5626 from minggo/install

set environment correctly on windows