Use directory from config for checking pid rather than a static one.
Merge pull request #154 from kassi/checkpid

Use directory from config for checking pid rather than a static one.