Hi Phill,
Did you try using better resistors for the potential divider? It's possible simply replacing them with 1% metal film would've solved the problem without having to rebuild the PCB.
A relay is an interesting solution to the voltage drop problem. Another solution would've been to simply put the switch before the LM317 which will compensate for the voltage drop.