fix test_entry to work when TMPDIR env var is set to weird places