Added some features to the directory check

Added an individual tag for each file which matched the pattern
Added configuration params to change the tag names (directory and file)