use tmpdir in specs