Fix project root on cygwin-git.

This patch is related to #264. The new code had removed `msysgitPath` in preference.
Merge pull request #271 from yfwz100/patch-2

Fix project root on cygwin-git.