Fix gotask test not working on windows