Use full paths in cloning and changing directory and not for other commands.