Fix handling of missing osgeo package.