changed pattern dirname in tag.sh
changed pattern dirname in test-pattern.sh