wrong handling of pid files
Merge pull request #167 from wick-ed/master

wrong handling of pid files