You should be fine as long as you disclosed in good faith initially and refund the difference within a reasonable amount of time after discovering that the borrower overpaid. I do not believe that Regulation Z contemplates a situation in which a discrepancy cannot be identified until greater than 30 or 60 days after loan closing. Document the file as to the date the appraisal invoice was received.
As long as you're already providing a refund, I would also issue a revised CD with the actual appraisal completion fee, although you have an argument that this is not strictly required. This is just the best customer experience in my opinion.