Remove a call of File.dirname
Use Rails.join.root
Use Process.daemon
Make pids directory if none
Merge pull request #135 from mrkn/process_daemon

Process daemon