Make "Bad file" integration test compatible for Windows paths