TMPDIR fix for travis builds. Also add job validation during test.