re-add PIDFILE support
Merge pull request #789 from j-wilkins/pidfile

Write PIDFILE in rake task.