added real checks for existence of dependent objects when deleting management types
upgraded capistrano