- Added pidfile checking
- Determine where to put the pidfile