ENH: File extension case sensitivity

Made all file extension comparisons case-insensitive.
Suggested fix for http://na-mic.org/Mantis/view.php?id=3511