fix two more gitignore cases: "//" and for symlinks paths ending with "/"