Hard-coded paths to temp directory removed

/var/tmp replaced with ini_get(“upload_tmp_dir”)