Fix gitignore for directory handling