ensure that the pids directory is created and linked