handle existing dep folders