Change swap recipe to support ruby 1.8