apply file exclusion to the current directory

Use the same exclusion pattern for the current directory that is used for gather files other directories.