make temp file directory overridable