Split global .gitignore file into per-directory files