fix tail_test for systems without $TMPDIR.
Merge pull request #35 from cogniva/no-tmpdir

fix tail_test for systems without $TMPDIR.