I have no experience with scale rot, but since she/he is so close to shed I would suggest just waiting it out and seeing if that fixes itself. If his/her tail is still funky after the shed, then maybe a trip to the vet is in order.