update script in order to create the pid dir if not exist (CentOS7 fix)