make sure we check extensions case insensitively