Made test and pkgtest handler work on windows