Principal eigenvalue and maximum principle for some elliptic systems defined on general domains with refined Dirichlet boundary condition