- improve pid file handling
Merge pull request #77 from hadfl/daemonize_pid

- improve pid file handling