in tools/pkgutils.py: recursively searching up for .git directory until
reaching / on Unix or drive root on Windows
Merge pull request #12 from racker/songgao/recursively_search_up_for_git_dir

tools/pkgutils.py: recursively searching up for .git directory