improve get temporary folder