Added a section to the init script that creates the pidfile dir if it has been deleted.