Make sure the folder for PID file exist

Init script does not work property since the PID file can't be created if the folder does not exist. This should mitigate this problem