Fix 'gem' task.