[fix] Don't crash on unknown pathnames