Fixing deploy for ruby 1.8

.keep_if is not present in Ruby 1.8, using delete_if and reversing the test should be equivalent and more universal.