refactor msys_path into git_path returning path to git executable