Fix issue on windows when calling subprocess.Popen