Make sure the pid file directory is created.

Otherwise the service cannot start with systemd.

Tested on CentOS-7 where the issue was discovered.