rails-observers compatibility issues

I am using rails-observers, without rails, but i got som issues with the way your gem was checking for rails presence, so i made some changes to fix it.