Allow hidden file pattern to be customized, document options

Use fnmatch and a configurable list of patterns to determine if a file is considered hidden.