Corrected file extension lookup.