autodiscover appropriate driver

The autodiscover would have failed for remote datasets. The extension
testing was changed to more flexible regular expressions.