[BUGFIX] Consistent upper camel case of extension name

This fixes fatal errors during cache file generation on case insensitive file systems. Also includes some minor code cleaning.