fix(utils): Find files but not directories

This occured in ploneintranet, where
a directory has a name of something.js
The checker treated it as a file.