Skip invalid files during discovery