Remove redundant fnmatch call

Missed this change in #5204