Fix defect in ind:environmentvariable_object collection, and enhanced case-insensitivty implementation for Windows.