I used to edit the ~/Music/iTunes/iTunes Music Library.xml by searching and replacing every occurrence of the path string (Xcode can handle that for you) while iTunes wasn’t running, but I have done that in a while. Can you use something like this?

 

How to move your iTunes Media folder | Macworld

 

Laine Lee