Fix a test introduced in r218246 to work also on Windows.