fixed the update script for Windows