Clean up some syntax issues in update script.