[BUGFIX] lowercasing the extension to prevent missing an extension