add param to tell gettmpdir not to create dir