Fix filename recognition.