Fix harvest script on Windows