Fix gem publish task.