force extension checking to match end of filename