Fix bug where non-geotiff files weren't being indexed