Paths properly treated

os.tmpdir doesn't return trailing slash so it didn't work.