Fix sudo behaviour on travis.