Screenshot saves to /var/folders instead of the path I set

I have tried driver.save_screenshot(“path/to/screenshot.png”) and driver.get_screenshot_as_file(“path/to/screenshot.png”) with no luck. It keeps saving it to /var/folders/ instead.

in appium 1.3.4 driver.get_screenshot_as_file(filename) works good. Saves directly to provided path