Fix upload error on windows