Fix: Use os.tmpdir() insead of the deprecated os.tmpDir()