close bug #22
 - making the pid file configurable