Fix for still referencing Rails on Rack environments

This is a blind attempt to fix Rails references in non-rails apps. 
Apparently works for @coffeejunk (op).
See: #84.