[ci] Try to fix .gitignore check on macOS