Corrected setting of tempory directory vairable