Minor tweaks to ignore.c code

Another minor optimization, this time to filename_filter().
(Probably not detectable in itself)