golang is able to infer byteNewLine type
Fix handling of 'dir/*' in .gitignore

It should ignore all nested directories as well, so treat this as a full
wildcard.