Fix name matching to work on windows.