attempt to auto-detect path of pid file (fixes #7)