fix temp file directory