Re #439: Return "unknown" for file type when file name is nil.