Refactor GitPathTool to use subprocess import