fix .gitignore rules with wildcards