Use af_tempdirectory variable for getting local temp directory