Travis doesn't allow writting stuff into /tmp, write all the temporary files in
a directory which is created in the tests directory.