Tweaks to acommodate non-Rails usage

Made these changes so this will work more comfortably outside of Rails.