make it work with Sinatra

replace it with something more readable.
`<%= ENV['REQRES_RSPEC_APP'] %>`
and set it somewhere where framework is detected