U.S. oil refineries are moving aggressively to produce renewable diesel, partly to cash in on Canada's greener fuel standard before Canadian refiners modify their own plants.