Fixed upgrade problem when replacing perls