Use case insensitive check for file extensions (fix #99).