isOsMatched function
Checks if the given name matches the current platform's operating system.
Handles "Windows" as case-insensitive for the input name.
Returns true if name matches the current OS, otherwise false.
Implementation
bool isOsMatched(String name) {
if (name.contains('Windows')) name = 'windows';
return name == ftOs;
}