fix per-dir conf