Fix shp_files function to work on case-insensitive file systems.