Thanks for the response.
I have tested this using DWG 2016 on windows 7 and the dwg and xrefs open fine.
On windows 10 and dwg 2020, i get the referenced file missing message.
I'm guessing that as the same drawing opens ok on windows 7, the hardcoding as you say is fine.