Rails 2 friendly

Attempt to make the gem play nicely in a Rails 2 environment. Previous version gave load error under Rails 2 as Railstie not defined till Rails 3.