dir: convert is_excluded to take an index