Makes git_info also work in other language environments

Before, the git output varies depending on user's locale, which makes `__git_info` broken in language other than English. I added `env LANG=C` in front of all git callings to fix it.

Furthermore, originally there are `\d`s in grep regex, which is not standard and unportable. I changed them to POSIX `[:digit:]`.