fix tail_test for systems without $TMPDIR.

Tests were failing on my Lubuntu netbook; with this change they all pass.