fix bug in Build._clone_repo