CatDance,
It seems unusual to me to write a lisp for this check. We have the same ability (with very similar ease) to open our External References window, via the XREF command, and immediately see which references are pathed incorrectly and they can also be re-pathed.
Can you explain why that workflow does not work for you?
Best,
~DD