Fix error when cleaning single dependency
Fix git checkout when directory already exists