Fix test on Linux: use path.join with os.tmpdir.

Looks like os.tmpdir() isn’t guaranteed to return a trailing slash.