add sleep for win8 to avoid file locked