Exclude git and DS_Store when not in project root

Make git and DS_Store files excluded by default, even when they are not at the root of the project.
Merge pull request #430 from knitatoms/patch-1

Exclude git and DS_Store when not in project root