fix temporary file directory