fixed exclusion pattern to only exclude folders

fixed exclusion pattern to only exclude folders