Better handling of spec's tmpdir