Fixed fallback generation fails if the file's extension is uppercased.