Merge pull request #1356 from arrbee/fix-directory-as-ignore-file Do not fail if .gitignore is directory