Update update-directory-index.sh

Simplify grep function and ignore .git folder