libdisk: Handle mixed-case filename extensions.