Don't use tee but redirect the log to a file and print it afterwards

Sometimes tee fails on travis. Using "strings" seems to work better (it doesn't colorize the output, but it's not an important feature).