Removed obsolete if() in index_dir