Fix to init.d script to create pidfile dir as needed.
Fixed .gitignore specs which were too wide.
Reworked init file.