if script run from nrpe user set temp to nrpe directory /var/run/nrpe, otherwise to /tmp
checking is temp directory exist - fixed
merge