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.