Update generators/templates/script

Need to require config/environment.rb, so Rails.env will work within the Daemon.