Fixed a bug that happens panic when global gitignore file dosen't defined.