fix handling of .* in .gitignore