Add is_fnmatch method to FileAtIndex

This method remove duplication from builtin plugins
at git-pre-commit-hook package