Do downcase on Windows environment key_name too

Issue breaks windows_path