Fix test script on windows