Fix travis sudo functional test