msysGit: Use a more generic way to change to the working tree root