find correct path on windows
Merge pull request #5763 from minggo/script-fix

find correct path on windows