Robustified integrate.rb deploy method