Ensure that the pid directory is created

In certain cases this directory was not being created.

Correct solution here might be some kind of anchoring?