Finalize GDAL environment implementation.

Deregister drivers only if the environment "is chef". Always
unset options that may have been set.