made file filtering case-insensitive