Make backup and log directories on tool init
Chdir to the project root on start
Remove the pidfile on exit, and exit cleanly on SIGTERM