travis: uninstall old packages in the right order