modify the behavior of git-ignore, now it will cd root to find .gitignore