Fix bug in regex

The period in `grep -v .git` is not a literal, but rather a `.` that matches
any one letter (other than a \n).