Merge pull request #191 from EvilFaeton/master

set worker directory from configuration file
Add -V, --version
Record the proper @master_pid
Write out the state post-daemonize. Fixes #189