added more extended determination of temp folder