Refactor - Centralize hostDir and groupDir settings