Fix the driver logic for recent versions of DragonFly.

Patch by John Marino.