Add TMPDIR env variable to Travis file

- Add exporting of TMPDIR env variable (where TMPDIR=$PWD/tmp) to Travis
  file so that tests don't try to create temp files in an unwritable area.