fixed the url for the deps git repo
deleted the directory if the clone or checkout fails