Improve caching settings for Travis CI