Fix #2584 - Escape the last backslash from paths before running GitExtensions to avo...

This fixes the crash due to cloning in the root of drive as described in #2584.

I also fixed the same case when running GitExtensions from GitCommands.