use pidlockfile, should fix #40
Merge pull request #41 from medea/pidlock

use pidlockfile