prefer to use rails agents config if it exists

In `test.rb`, when iterating over base_paths, if the first path has a `user_agents.yml` file, the second path is not tried. The second path was Rails, so the user_agents file in a Rails app's `config/user_agents.yml` file was not being loaded.

My change moves Rails' path to the front so that it takes precedence.