Fix .gitignore files to not ignore subdirectory matches