Environment for rake, fix smart_index