Change template variable for correct logfile names

Use `rails_env` instead of `level` to represent the RAILS_ENV
environment name that determines the names of the logfiles.