Errors when starting Rails4 app

Without this patch starting a Rails 4 app causes the `scout_rails` gem to raise errors when loading the config and log file because of Rails.root being nil at the time of starting the scout agent.