Prevent init.d script to fail when using YAML config

This commit sets default value of the `PIDFILEPATH` variable. The variable is not set if the config file is using YAML format. If the variable is not set, the `dirname` command fails which makes the whole init.d script to fail.