fix: ensure os.tmpdir always ends in a slash