Made unpickling test CWD-independent

Refs #24007.
Seems you are right, thanks for the tip!