My guess is it will keep track of the PID

PID changes with every execution. How would it help when preserving configuration data?

Do you mean the real path instead of the PID?