Fixing travis for 3.1 builds