Travis: use different approach for conditional install