fix #730: uppercase file extension weren't recognized

fix #730: uppercase file extension weren't recognized