Use stored cwd instead of os.getcwd
Refactor googkit.lib.clone