Fix for usage out of Rails environment