Override index_dir to add env