Fix editor auto-detection.