[travis] Fix bash bug; install valgrind.