Add support for shapefiles with uppercase extension on Linux (#4712)