New method for get the temp dir from the system.