Bug fixes. Add .gitignore files to directory-only entries.