Use /usr/bin/env ruby instead of /usr/bin/ruby