Ensures the pid directory exists

Ensures the PID_DIRECTORY exists in order to survive hard reboots. When the machine gets restarted, the script cannot successfully start because the /var/run/$APP_NAME directory does not exist.

This commit addresses this issue creating the directory if it is not existent.