Added better support for usage outside of rails (i.e. Middleman)