20170817 business.international-business: TSX ends lower as resource groups head in opposite directions