mktmpdir creates a temporary directory