Here are some command-line scripts to modify all the necessary files at once.
Unix and Mac:/usr/bin/env ruby:ruby -i -pe 'gsub!("#!/usr/local/bin/ruby", "#!/usr/bin/env ruby")' public/dispatch.* script/*/usr/bin/ruby18:ruby -i -pe 'gsub!("#!/usr/local/bin/ruby", "#!/usr/bin/ruby18")' public/dispatch.* script/*c:/ruby/bin/ruby:ruby -i.bak -pe 'gsub!("#!/usr/local/bin/ruby", "#!c:/ruby/bin/ruby")' public/dispatch.* script/*