Revert "[minor] filechecker: append trailing slash if missing when no pattern is used"

This reverts commit caf473ef051921dca1f3e2bb185f833b3d08c19b.