Made unpickling test CWD-independent

Refs #24007.
I won't insist. :-)