Environment for rake tasks and fix smart_index