updated deploy.rb for handling dependencies installation