Hello Dave,
as you mentioned that this is in the context of an upgrade effort from v11 to v13, I would also advise to have a look here. Double check the required changes both in the project (dependencies, configuration xml structure, assembly files etc) but as well the changes required in running instances. More specifically look at the sections where setenv.sh is being mentioned.
HTH and regards,
Lef