cloning __gitdir definition for MSYS compatibility