Made model_regress unpickling test CWD-independent

Refs #24007. Thanks Tim Graham for his help with the patch.